<?xml version="1.0" encoding="utf-8"?>
<IF:NOCACHE>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
	<title>Warning</title>
</head>
<body class="alert">
	<p class="text">No caches</p>
    <locify:timeout value="1000" />
</body>
</html>
</IF:NOCACHE>

<UNLESS:NOCACHE>
<UNLESS:MAP>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>Nearest Caches</title>
</head>
<body class="list">
		<ul>
		<LOOP:CACHES>
			<li>
				<img src="%SERVICE_URL%/images/%type%.png" /><UNLESS><a href="%SERVICE_URL%?_state=cache_detail;guid=%href%" class="listItem"><IF:archived> ARCHIVED - </IF:archived><IF:disabled> DISABLED - </IF:disabled>%distance% %title%</a>
			</li>
		</LOOP:CACHES>
		<IF:__NEXTPAGES><li><a href="%SERVICE_URL%%__URL%;_state=nearest_page;__PAGE=%__NEXTPAGE%;__VIEWSTATE=%__VIEWSTATE%;__VIEWSTATE1=%__VIEWSTATE1%">Next 20 caches</a></li></IF:__NEXTPAGES>
		</ul>
				

</body>
</html>
</UNLESS:MAP>
<IF:MAP>
<kml xmlns="http://earth.google.com/kml/2.2">
	<Document>
		<name>Nearest Caches</name>
		<Style id="ctid2">
			<IconStyle>
				<Icon><href>%SERVICE_URL%/images/TR.png</href></Icon>
			</IconStyle>
		</Style>
		<Style id="ctid3">
			<IconStyle>
				<Icon><href>%SERVICE_URL%/images/MU.png</href></Icon>
			</IconStyle>
		</Style>
		<Style id="ctid8">
			<IconStyle>
				<Icon><href>%SERVICE_URL%/images/UN.png</href></Icon>
			</IconStyle>
		</Style>
		<Style id="ctid1858">
			<IconStyle>
				<Icon><href>%SERVICE_URL%/images/WH.png</href></Icon>
			</IconStyle>
		</Style>
		<Folder>
			<LOOP:CACHES>
				<Placemark>
       				<name><![CDATA[%nn%]]></name>
					<description>
						<![CDATA[<a href="%SERVICE_URL%?_state=cache_detail&guid=%gc%">%gc%</a>]]>
					</description>
					<styleUrl>#ctid%ctid%</styleUrl>
					<Point>
						<coordinates>%lon%, %lat%</coordinates>
					</Point>
		
				</Placemark>
			</LOOP:CACHES>
		</Folder>
	</Document>
</kml>
</IF:MAP>
</UNLESS:NOCACHE>